package com.bone.constant;


public class OrderConstant {

	
	
	
	public static enum  ORD_ORDER_PAYMENT_STATUS {
		UNPAY("未支付"),
		PAYED("支付完成"),
		PARTPAY("部分支付"),
		PREPAYED("预授权支付"),
		BYPAYEDCANCEL("预授权撤销");
		
		private String cnName;
		ORD_ORDER_PAYMENT_STATUS(String name){
			this.cnName=name;
		}
		public String getCode(){
			return this.name();
		}
		public String getCnName(){
			return this.cnName;
		}
		public static String getCnName(String code){
			for(ORD_ORDER_PAYMENT_STATUS item:ORD_ORDER_PAYMENT_STATUS.values()){
				if(item.getCode().equals(code))
				{
					return item.getCnName();
				}
			}
			return code;
		}
		public String toString(){
			return this.name();
		}
	}
	
	
	public static enum ORD_ORDER_AMOUNT_STATUS {
		ADD("增加费用"),
		REDUCE("减少费用");
		private String cnName;
		ORD_ORDER_AMOUNT_STATUS(String name){
			this.cnName=name;
		}
		public String getCode(){
			return this.name();
		}
		public String getCnName(){
			return this.cnName;
		}
		public static String getCnName(String code){
			for(ORD_ORDER_AMOUNT_STATUS item:ORD_ORDER_AMOUNT_STATUS.values()){
				if(item.getCode().equals(code))
				{
					return item.getCnName();
				}
			}
			return code;
		}
		public String toString(){
			return this.name();
		}
	}
	
	public static enum ORD_ORDER_AMOUNT_TYPE {
		UNVERIFIED("未审核"),
		PASS("审核通过"),
		FAIL("不通过"),
		CONFIRM("已确定");
		private String cnName;
		ORD_ORDER_AMOUNT_TYPE(String name){
			this.cnName=name;
		}
		public String getCode(){
			return this.name();
		}
		public String getCnName(){
			return this.cnName;
		}
		public static String getCnName(String code){
			for(ORD_ORDER_AMOUNT_TYPE item:ORD_ORDER_AMOUNT_TYPE.values()){
				if(item.getCode().equals(code))
				{
					return item.getCnName();
				}
			}
			return code;
		}
		public String toString(){
			return this.name();
		}
	}
	
	
	
	
}
